package com.cbi.clickhouse.JDKproxy;

/**
 * jdk动态代理
 * 模仿my
 *
 * @author Ivan.Qu reviewcode@163.com
 * @date 4:45 下午 2022/8/17
 */
public class MainMethod {

    public static void main(String[] args) {
        TargetProxy targetProxy = new TargetProxy();
        UserService userService = (UserService) targetProxy.getProxy(UserService.class);
        System.out.println(userService.nameList());
    }
}
